def store = '' 

// repeticion
10.times {
    store += 'x'
}
assert store == 'xxxxxxxxxx'

// hacia arriba
store = ''
1.upto(5) { number ->
    store += number
}
assert store == '12345'

// hacia abajo
store = ''
2.downto(-2) { number ->
    store += number + ' '
}
assert store == '2 1 0 -1 -2 '

// de pasos
store = ''
0.step(0.5, 0.1) { number ->
    store += number + ' '
}
assert store == '0 0.1 0.2 0.3 0.4 '




